package com.study.enumeration;

public enum ResponseEnum {
	SUCCESS(200, "成功"), //

	TIME_OUT(130, "访问超时"), //

	NO_PERMISSION(403, "拒绝访问"), //

	NO_AUTH(401, "未经授权访问"), //

	NOT_FOUND(404, "无法找到资源"), //

	METHOD_NOT_ALLOWED(405, "不支持当前请求方法"), //

	SERVER_ERROR(500, " 服务器运行异常"), //

	OPR_FAIL(10000, "操作失败"),

	NOT_PARAM(10001, "参数不能为空"), //

	NOT_EXIST_USER_OR_ERROR_PASSWORD(10002, "该用户不存在或密码错误"), //

	NOT_PARAM_USER_OR_ERROR_PASSWORD(10003, "用户名或密码为空"), //

	NOT_DELETE_MYSELF(10004, "不能删除自己哦"), //

	EXIST_USER(10005, "用户名已经存在"), //

	NOT_PARAM_USER_OR_ERROR_ACCOUNTID(10006, "用户名或用户ID为空"), //

	EXIST_USER_BY_ROLE(10007, "该角色有关联的账户，不能删除！");//

	private Integer code;
	private String msg;

	private ResponseEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
